package cn.sumpu.app.coolsk.dao;

import java.util.List;
import java.util.Map;

import cn.sumpu.app.coolsk.domain.Product;
import cn.sumpu.app.coolsk.domain.ProductPrice;
import cn.sumpu.app.coolsk.exception.AppBusinessException;

public interface ProductDao {
	public void insertProduct(Product product)throws AppBusinessException;

	public void updateProduct(Product product)throws AppBusinessException;
	
	public List<Product> getProduct(Map<String,Object> map)throws AppBusinessException;
	
	public int getProductCount(Map<String,Object> map)throws AppBusinessException;
	
	public void delProduct(Map<String,Object> map)throws AppBusinessException;
	
	public void insertProductPrice(ProductPrice productRice)throws AppBusinessException;
	
	public void delProductPrice(Map<String,Object> map)throws AppBusinessException;
	
	public List<ProductPrice> getProductPrice(Map<String,Object> map)throws AppBusinessException;
	
}
